﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/List2.Master"  AutoEventWireup="true" CodeBehind="Bu_DocReceive_List.aspx.cs" Inherits="Honestysoft.Financing.WebUI.Module.Audit.Bu_DocReceive_List"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">		
    <div class="query_area">
		项目名称：<asp:TextBox ID="txtProjectName" runat="server"  cssClass="input2" MaxLength="200" Width="100px"></asp:TextBox>&nbsp;&nbsp;	
        合同类别：<asp:DropDownList ID="ddlContractCategory" runat="server" cssClass="input2" ></asp:DropDownList>&nbsp;&nbsp;
		合同编号：<asp:TextBox ID="txtCode" runat="server"  cssClass="input2" MaxLength="200" Width="100px"></asp:TextBox>&nbsp;&nbsp;
		合同名称：<asp:TextBox ID="txtName" runat="server"  cssClass="input2" MaxLength="200" Width="100px"></asp:TextBox>&nbsp;&nbsp;		
        <asp:Button runat="server" ID="btnQuery" Text="查 找" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" OnClick="btnQuery_Click" />
    </div>      
    
    <asp:Panel runat="server" ID="pnlSum" CssClass="infoContainer">        
        本合同申请次数：<asp:Label runat="server" ID="lblCount"></asp:Label>，合计初审金额：<asp:Label runat="server" ID="lblSum_Amount_DocRec"></asp:Label>
    </asp:Panel>
          
    <div class="button_area">
        <asp:Button runat="server" ID="btnFirst" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="首次申请"/>
        <asp:Button runat="server" ID="btnAdd" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="新 增"/>
        <asp:Button runat="server" ID="btnDelete" CssClass="btn_normal" 
			onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'" Text="删 除" 
            OnClientClick="javascript:return doListDelConfirm('chkID','chkAll');"             
            onclick="btnDelete_Click" />
    </div>
            
    <table cellpadding="0" width="100%" cellspacing="0" border="1" class="t1" id="tGrid">
		<thead>  
            <th align="center" width="30px">
                <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:checkAll(this,"chkID")' />
            </th>
            <th align="center" width="60px">编号</th>
            <th align="center">所属项目</th>
            <th align="center">所属合同</th>
            <th align="center" width="80px">本笔申请金额</th>
            <th align="center" width="60px">接收时间</th>
            <th width="60px">操作</th>
      	</thead>           
		<asp:Repeater runat="server" ID="rptList">
			<ItemTemplate>
				<tr>
					<td align="center" >
						<%#GetCheckBox(DataBinder.Eval(Container.DataItem, "ID") + "", Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "IsUse")))%>
					</td>
					<td><%#  DataBinder.Eval(Container.DataItem,"Code") %></td>
                    <td style="text-align:left"><%#  DataBinder.Eval(Container.DataItem,"ProjectName") %></td>
					<td style="text-align:left"><%#  DataBinder.Eval(Container.DataItem,"ContractName") %></td>
					<td align="right"><%# string.Format("{0:0.00}", DataBinder.Eval(Container.DataItem,"Amount")) %></td>
					<td><%# string.Format("{0:yyyy-MM-dd}", DataBinder.Eval(Container.DataItem, "ReceiveDate"))%></td>
					<td>
						<%# GetButtonScript(DataBinder.Eval(Container.DataItem, "ID") + "", Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "IsUse")))%>
					</td>
				</tr>  
			</ItemTemplate>
		</asp:Repeater>
    </table>
     <div class="paging_area" >
     <frameworkwebcontrols:aspnetpager id="AspNetPager1" runat="server"
                    alwaysshow="true" firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" pageindexboxtype="DropDownList"
                    prevpagetext="上一页" showpageindex="true" showcustominfosection="Right" submitbuttontext="Go"
                    textafterpageindexbox="页" textbeforepageindexbox="转到" currentpagebuttonposition="End"
                    layouttype="Div" custominfotextalign="Right" custominfohtml="共%RecordCount%条记录。第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                    direction="LeftToRight" onpagechanged="AspNetPager1_PageChanged">
                </frameworkwebcontrols:aspnetpager>    
     </div>
</asp:Content>